package day03;
//条件运算符的演示
public class OperDemo6 {
    public static void main(String[] args) {

        int num = 5;
        int flag = num>0?1:-1;
        System.out.println(flag); // 1

        int a=8,b=5;
        int max = a>b?8:5;
        System.out.println("max=" + max); // max=8


    }
}
